<?php 
session_start();
header("Content-type: text/xml"); 

//$study_year = $_SESSION["study_year"];
$study_year =  2011;

//$feed = "http://www.peterborough.ac.uk/prc/service.asmx/SubjectAreaList?StudyYear={$study_year}&mode=&category=0";

$feed="http://{$_SERVER['SERVER_NAME']}/WebServices/PRC/service.asmx/SubjectAreaList?StudyYear=2011&mode=&category=0";


$xml = simplexml_load_file($feed);
$xml = str_replace("utf&#x2013;8", "utf-8", $xml);
 echo $xml;
?>